﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 门户表
    /// </summary>
    [Table("BASE_PORTAL")]
    public class PortalEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }

        /// <summary>
        /// 有效标志
        /// 0-有效,1-无效
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        public string LastModifyUserId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        public string DeleteUserId { get; set; }


        /// <summary>
        /// 名称
        /// </summary>
        [Column("F_FULLNAME")]
        public string FullName { get; set; }


        /// <summary>
        /// 编码
        /// </summary>
        [Column("F_ENCODE")]
        public string EnCode { get; set; }


        /// <summary>
        /// 分类(数据字典维护)
        /// </summary>
        [Column("F_CATEGORY")]
        public string Category { get; set; }

        /// <summary>
        /// 表单配置JSON
        /// </summary>
        [Column("F_FORMDATA")]
        public string FormData { get; set; }
    }
}
